package com.sasis.model;
// Generated 2007-5-23 15:52:16 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_INFO"
 *     
 */

public class FlightAdjustInfo extends FlowModel implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private Timestamp publishTime;
    private Timestamp oldTime;
    private Timestamp currentTime;
    private String oldType;
    private String currentType;
    private Integer reasonOut;
    private Integer reasonIn;
    private String memo;
    private Integer adjustType;
    private String protectInfo;

    //added by liuhao 2007-8-22
    private String flightNum;
    private String departureAirport;
    private String arrivalAirport;
    private Timestamp std;
 
    private String acReg;
    //departureAirport,s name
    private String dan;
    //arrivalAirport,s name
    private String aan;
    //reasonIn,s name
    private String reasonInName;
   //reasonOut,s name
    private String reasonOutName;
    //added by liuhao 8-27
    private Timestamp etd;
    private Timestamp atd;
    private Timestamp eta;
    private Timestamp ata;
    private String acType;
    private String flightState;
    private String delayReason;
    private Integer saveFlag;
    private Date flightDate;
    private Timestamp startPublishTime;
    private Timestamp endPublishTime;
 
    // Constructors
    private int econNum;
    private int passagerNum;
    private int passagerTotal;
    
    private Integer type;
    
    public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public int getEconNum() {
		return econNum;
	}

	public void setEconNum(int econNum) {
		this.econNum = econNum;
	}

	public int getPassagerNum() {
		return passagerNum;
	}

	public void setPassagerNum(int passagerNum) {
		this.passagerNum = passagerNum;
	}

	public int getPassagerTotal() {
		return passagerTotal;
	}

	public void setPassagerTotal(int passagerTotal) {
		this.passagerTotal = passagerTotal;
	}

	/** default constructor */
    public FlightAdjustInfo() {
    }

	/** minimal constructor */
    public FlightAdjustInfo(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    
    /** full constructor */
    public FlightAdjustInfo(Integer flightInfoId, Timestamp publishTime, Timestamp oldTime, Timestamp currentTime, String oldType, String currentType, Integer reasonOut, Integer reasonIn, String memo, Integer adjustType, String protectInfo, String departureAirport) {
        this.flightInfoId = flightInfoId;
        this.publishTime = publishTime;
        this.oldTime = oldTime;
        this.currentTime = currentTime;
        this.oldType = oldType;
        this.currentType = currentType;
        this.reasonOut = reasonOut;
        this.reasonIn = reasonIn;
        this.memo = memo;
        this.adjustType = adjustType;
        this.protectInfo = protectInfo;
        this.departureAirport=departureAirport;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="PUBLISH_TIME"
     *             length="7"
     *         
     */

    public Timestamp getPublishTime() {
        return this.publishTime;
    }
    
    public void setPublishTime(Timestamp publishTime) {
        this.publishTime = publishTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="OLD_TIME"
     *             length="7"
     *         
     */

    public Timestamp getOldTime() {
        return this.oldTime;
    }
    
    public void setOldTime(Timestamp oldTime) {
        this.oldTime = oldTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="CURRENT_TIME"
     *             length="7"
     *         
     */

    public Timestamp getCurrentTime() {
        return this.currentTime;
    }
    
    public void setCurrentTime(Timestamp currentTime) {
        this.currentTime = currentTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="OLD_TYPE"
     *             length="10"
     *         
     */

    public String getOldType() {
        return this.oldType;
    }
    
    public void setOldType(String oldType) {
        this.oldType = oldType;
    }
    /**       
     *      *            @hibernate.property
     *             column="CURRENT_TYPE"
     *             length="10"
     *         
     */

    public String getCurrentType() {
        return this.currentType;
    }
    
    public void setCurrentType(String currentType) {
        this.currentType = currentType;
    }
    /**       
     *      *            @hibernate.property
     *             column="REASON_OUT"
     *             length="22"
     *         
     */

    public Integer getReasonOut() {
        return this.reasonOut;
    }
    
    public void setReasonOut(Integer reasonOut) {
        this.reasonOut = reasonOut;
    }
    /**       
     *      *            @hibernate.property
     *             column="REASON_IN"
     *             length="22"
     *         
     */

    public Integer getReasonIn() {
        return this.reasonIn;
    }
    
    public void setReasonIn(Integer reasonIn) {
        this.reasonIn = reasonIn;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="2048"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
    /**       
     *      *            @hibernate.property
     *             column="ADJUST_TYPE"
     *             length="22"
     *         
     */

    public Integer getAdjustType() {
        return this.adjustType;
    }
    
    public void setAdjustType(Integer adjustType) {
        this.adjustType = adjustType;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROTECT_INFO"
     *             length="2048"
     *         
     */

    public String getProtectInfo() {
        return this.protectInfo;
    }
    
    public void setProtectInfo(String protectInfo) {
        this.protectInfo = protectInfo;
    }
   
    /**
     * 
     * @return
     */
    public String getArrivalAirport() {
    	return arrivalAirport;
    }

    public void setArrivalAirport(String arrivalAirport) {
    	this.arrivalAirport = arrivalAirport;
    }
    /**
     * 
     * @return
     */
    public String getDepartureAirport() {
    	return departureAirport;
    }

    public void setDepartureAirport(String departureAirport) {
    	this.departureAirport = departureAirport;
    }

    /**
     * 
     * @return
     */
    public String getFlightNum() {
    	return flightNum;
    }


    public void setFlightNum(String flightNum) {
    	this.flightNum = flightNum;
    }
 
   /**
    * 
    * @return
    */
    public Timestamp getStd() {
    	return std;
    }

    public void setStd(Timestamp std) {
    	this.std = std;
    } 
    /**
     * 
     * @return
     */    
    public String getAcReg() {
    	return acReg;
    }

    public void setAcReg(String acReg) {
    	this.acReg = acReg;
    }

    /**
     * toString
     * @return String
     */
    
    public String getAan() {
		return aan;
	}


	public void setAan(String aan) {
		this.aan = aan;
	}


	public String getDan() {
		return dan;
	}


	public void setDan(String dan) {
		this.dan = dan;
	}
	
	public String getReasonInName() {
		return reasonInName;
	}

	public void setReasonInName(String reasonInName) {
		this.reasonInName = reasonInName;
	}

	public String getReasonOutName() {
		return reasonOutName;
	}

	public void setReasonOutName(String reasonOutName) {
		this.reasonOutName = reasonOutName;
	}
	public String getAcType() {
		return acType;
	}

	public void setAcType(String acType) {
		this.acType = acType;
	}


	public Timestamp getAta() {
		return ata;
	}

	public void setAta(Timestamp ata) {
		this.ata = ata;
	}

	public Timestamp getAtd() {
		return atd;
	}


	public void setAtd(Timestamp atd) {
		this.atd = atd;
	}


	public Timestamp getEta() {
		return eta;
	}


	public void setEta(Timestamp eta) {
		this.eta = eta;
	}


	public Timestamp getEtd() {
		return etd;
	}


	public void setEtd(Timestamp etd) {
		this.etd = etd;
	}


	public String getFlightState() {
		return flightState;
	}


	public void setFlightState(String flightState) {
		this.flightState = flightState;
	}
	public String getDelayReason() {
		return delayReason;
	}

	public void setDelayReason(String delayReason) {
		this.delayReason = delayReason;
	}
	/**
	 * @return the saveFlag
	 */
	public Integer getSaveFlag() {
		return saveFlag;
	}

	public void setSaveFlag(Integer saveFlag) {
		this.saveFlag = saveFlag;
	}
	/**
	 * @return the flightDate
	 */
	public Date getFlightDate() {
		return flightDate;
	}

	public void setFlightDate(Date flightDate) {
		this.flightDate = flightDate;
	}
	public Timestamp getEndPublishTime() {
		return endPublishTime;
	}

	public void setEndPublishTime(Timestamp endPublishTime) {
		this.endPublishTime = endPublishTime;
	}

	public Timestamp getStartPublishTime() {
		return startPublishTime;
	}

	public void setStartPublishTime(Timestamp startPublishTime) {
		this.startPublishTime = startPublishTime;
	}
	
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("publishTime").append("='").append(getPublishTime()).append("' ");			
      buffer.append("oldTime").append("='").append(getOldTime()).append("' ");			
      buffer.append("currentTime").append("='").append(getCurrentTime()).append("' ");			
      buffer.append("oldType").append("='").append(getOldType()).append("' ");			
      buffer.append("currentType").append("='").append(getCurrentType()).append("' ");			
      buffer.append("reasonOut").append("='").append(getReasonOut()).append("' ");			
      buffer.append("reasonIn").append("='").append(getReasonIn()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("adjustType").append("='").append(getAdjustType()).append("' ");			
      buffer.append("protectInfo").append("='").append(getProtectInfo()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustInfo) ) return false;
		 FlightAdjustInfo castOther = ( FlightAdjustInfo ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getPublishTime()==castOther.getPublishTime()) || ( this.getPublishTime()!=null && castOther.getPublishTime()!=null && this.getPublishTime().equals(castOther.getPublishTime()) ) )
 && ( (this.getOldTime()==castOther.getOldTime()) || ( this.getOldTime()!=null && castOther.getOldTime()!=null && this.getOldTime().equals(castOther.getOldTime()) ) )
 && ( (this.getCurrentTime()==castOther.getCurrentTime()) || ( this.getCurrentTime()!=null && castOther.getCurrentTime()!=null && this.getCurrentTime().equals(castOther.getCurrentTime()) ) )
 && ( (this.getOldType()==castOther.getOldType()) || ( this.getOldType()!=null && castOther.getOldType()!=null && this.getOldType().equals(castOther.getOldType()) ) )
 && ( (this.getCurrentType()==castOther.getCurrentType()) || ( this.getCurrentType()!=null && castOther.getCurrentType()!=null && this.getCurrentType().equals(castOther.getCurrentType()) ) )
 && ( (this.getReasonOut()==castOther.getReasonOut()) || ( this.getReasonOut()!=null && castOther.getReasonOut()!=null && this.getReasonOut().equals(castOther.getReasonOut()) ) )
 && ( (this.getReasonIn()==castOther.getReasonIn()) || ( this.getReasonIn()!=null && castOther.getReasonIn()!=null && this.getReasonIn().equals(castOther.getReasonIn()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) )
 && ( (this.getAdjustType()==castOther.getAdjustType()) || ( this.getAdjustType()!=null && castOther.getAdjustType()!=null && this.getAdjustType().equals(castOther.getAdjustType()) ) )
 && ( (this.getProtectInfo()==castOther.getProtectInfo()) || ( this.getProtectInfo()!=null && castOther.getProtectInfo()!=null && this.getProtectInfo().equals(castOther.getProtectInfo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getPublishTime() == null ? 0 : this.getPublishTime().hashCode() );
         result = 37 * result + ( getOldTime() == null ? 0 : this.getOldTime().hashCode() );
         result = 37 * result + ( getCurrentTime() == null ? 0 : this.getCurrentTime().hashCode() );
         result = 37 * result + ( getOldType() == null ? 0 : this.getOldType().hashCode() );
         result = 37 * result + ( getCurrentType() == null ? 0 : this.getCurrentType().hashCode() );
         result = 37 * result + ( getReasonOut() == null ? 0 : this.getReasonOut().hashCode() );
         result = 37 * result + ( getReasonIn() == null ? 0 : this.getReasonIn().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         result = 37 * result + ( getAdjustType() == null ? 0 : this.getAdjustType().hashCode() );
         result = 37 * result + ( getProtectInfo() == null ? 0 : this.getProtectInfo().hashCode() );
         return result;
   }





}
